package com.weichen.xd.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.google.gson.annotations.SerializedName;

/**
 * Created by Dune on 2017/8/23.
 */

public class Wind implements Parcelable {


    public static final Parcelable.Creator<Wind> CREATOR = new Parcelable.Creator<Wind>() {
        @Override
        public Wind createFromParcel(Parcel source) {
            return new Wind(source);
        }

        @Override
        public Wind[] newArray(int size) {
            return new Wind[size];
        }
    };
    /**
     * deg : 40
     * dir : 东北风
     * sc : 4-5
     * spd : 24
     */

    @SerializedName("deg")
    private String deg;
    @SerializedName("dir")
    private String dir;
    @SerializedName("sc")
    private String sc;
    @SerializedName("spd")
    private String spd;

    public Wind() {
    }

    protected Wind(Parcel in) {
        this.deg = in.readString();
        this.dir = in.readString();
        this.sc = in.readString();
        this.spd = in.readString();
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.deg);
        dest.writeString(this.dir);
        dest.writeString(this.sc);
        dest.writeString(this.spd);
    }

    public String getDeg() {
        return deg;
    }

    public void setDeg(String deg) {
        this.deg = deg;
    }

    public String getDir() {
        return dir;
    }

    public void setDir(String dir) {
        this.dir = dir;
    }

    public String getSc() {
        return sc;
    }

    public void setSc(String sc) {
        this.sc = sc;
    }

    public String getSpd() {
        return spd;
    }

    public void setSpd(String spd) {
        this.spd = spd;
    }
}
